package com.cmy.mvvm.test.api

import android.app.Application
import com.cmy.framework_network.base.INetworkRequiredInfo
import com.cmy.mvvm.test.BuildConfig

/**
 * @name:
 *  NetworkRequestInfo
 * @package:
 *  com.cmy.mvvm.test
 * @date:
 *  2023/2/1708:53
 * @author
 *    cmy
 * @description
 *
 */
class NetworkRequestInfo(application: Application?) : INetworkRequiredInfo {
    private var mApplication: Application? = application

    override fun getAppVersionName(): String {
        return BuildConfig.VERSION_NAME
    }

    override fun getAppVersionCode(): String {
        return java.lang.String.valueOf(BuildConfig.VERSION_CODE)
    }

    override fun isDebug(): Boolean {
        return BuildConfig.DEBUG
    }

    override fun getApplicationContext(): Application? {
        return mApplication
    }
}